﻿function logout() {
    if (confirm('Are you sure you want to log out?\n\n(This will remove your stored credentials)')) {
        location.replace('Logout.aspx');
    }
}

function openModal(url, title) {
	var x = arguments[2] || '720';
	var y = arguments[3] || '550';
	win = new Window({
		className: 'msoffice',
		title: title, 
		top:50, left:100, width: x, height: y, 
		url: url, 
		destroyOnClose: true,
		showEffectOptions: {duration:0}
	});
	win.showCenter(true);
}

function openModalFromModal(url, title) {
	var x = arguments[2] || '700';
	var y = arguments[3] || '550';
	winNew = new Window({
		className: 'msoffice',
		title: title, 
		top:50, left:100, width: x, height: y, 
		url: url, 
		showEffectOptions: {duration:0}
	});
	winNew.showCenter(true);
}